#pragma once
#include "ArrayList.h"
#include "Pub.h"
#include <iostream>
using namespace std;


template <class E>
class BinaryList : public ArrayList<E>
{
	template<class E>
	friend ostream& operator<< (ostream&, BinaryList<E>&);
	

public:
	BinaryList() : ArrayList() {}
	BinaryList(const int& c) : ArrayList(c) {}
	~BinaryList();
	void add(const E&);
private:
	int find(const E&, const int&, const int&);
};

